package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 充电卡使用日志
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_card_recharge_log")
@ApiModel(value = "WoCardRechargeLog对象", description = "充电卡使用日志")
public class WoCardRechargeLog implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联的充电卡id")
    @TableField("card_id")
    private Long cardId;

    @ApiModelProperty("使用类型 1.充值 2.消费")
    @TableField("type")
    private Boolean type;

    @ApiModelProperty("金额	")
    @TableField("recharge_amount")
    private BigDecimal rechargeAmount;

    @ApiModelProperty("时间")
    @TableField("recharge_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date rechargeTime;

    @ApiModelProperty("支付方式 1.现金 2.微信 9.后台操作")
    @TableField("payment_method")
    private Boolean paymentMethod;

    @ApiModelProperty("操作员")
    @TableField("operator")
    private String operator;

    @ApiModelProperty("备注信息	")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("最后更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

}
